package com.threegroup.admin.dao;

import com.threegroup.admin.dto.DishFlavorDTO;
import com.threegroup.admin.entity.DishFlavorEntity;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DishFlavorEntityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DishFlavorEntity record);

    int insertSelective(DishFlavorEntity record);

    List<DishFlavorEntity> selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DishFlavorEntity record);

    int updateByPrimaryKey(DishFlavorEntity record);

    List<DishFlavorEntity> queryDishFlavorByDishId(Long dishDTOId);

    int updateByDishIdSelective(DishFlavorEntity flavors);

    int deleteByDishId(Long dishId);

    int deleteByIdList(List<Long> longsList);

    DishFlavorEntity queryFlavorBydishIdAndName(DishFlavorEntity dishFlavorEntity);

    List<DishFlavorEntity> queryAll(@Param("order") String order, @Param("orderField") String orderField);



}